package com.zdkj.subway.st.fegin;

import com.zdkj.common.core.constant.SecurityConstants;
import com.zdkj.common.core.constant.ServiceNameConstants;
import com.zdkj.common.core.util.R;
import com.zdkj.subway.st.dto.in.EsStation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lijie
 * @version 1.0.0 创建于 2021/1/6
 **/
@FeignClient(contextId = "subwaySupportService", value = ServiceNameConstants.SUPPORT_SERVICE)
public interface SubwaySupportService {
    /**
     * 票区名称字典
     */
    @GetMapping("/swpmticketarea/dict")
    R getAreaDict();

    /**
     * 根据主类型查子类型参数接口 车票名称 启用状态为1
     */
    @GetMapping("/swpmticketcardtypeparam/dict")
    R getParamByMain();

    /**
     * 根据主类型查子类型参数接口 车票名称 全部查询
     */
    @GetMapping("/swpmticketcardtypeparam/dictAll")
    R getParamByMainAll();

    /**
     * 票种
     */
    @GetMapping("/swpmticketcardtype/dict")
    R getCardTypeDict();

    //入库类型
    ///admin/dict/type/inventory_in_type


    /**
     * es站点反查
     */
    @GetMapping("/swpmticketcardtypeparam/esStationInfo")
    R<EsStation> getEsStationInfo(@RequestHeader(SecurityConstants.FROM) String from, @RequestParam("lineCode") String lineCode, @RequestParam("stationCode") String stationCode);
}
